var foo = <{():number; (i:number):number; }> function(){return 1;};